package com.controller;


import com.annotation.Anonymous;
import com.annotation.LoginUser;
import com.dao.SysUser;
import com.utils.Result;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/test")
public class Test1Controller {

    @RequestMapping(value = "/test01", method = RequestMethod.POST)
    public Result test(@LoginUser SysUser sysUser){
        System.out.println(sysUser);
        return Result.success("登录以后--接口可以调通");
    }


    @Anonymous
    @RequestMapping(value = "/test02", method = RequestMethod.POST)
    public Result test02(){
        return Result.success("登录以后--接口可以调通");
    }
}
